﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BDS3M.Admin.Controls
{
    public partial class ListHeader : System.Web.UI.UserControl
    {
        public string header1;
        public string header2;
        public string header3;
        public string date;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!Page.IsPostBack)
                {
                    DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectAllTable("tbl_Header");
                    date = dt.Rows[0]["Header_Date"].ToString();
                    header1 = dt.Rows[0]["Header_Name1"].ToString();
                    header2 = dt.Rows[0]["Header_Name2"].ToString();
                    header3 = dt.Rows[0]["Header_Name3"].ToString();

                }
            }
            catch (Exception)
            {
                Response.Redirect("/error.htm");
            }          
        }
    }
}